package cn.tedu.smartos.family_user.pojo.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ElderlyBindParam {
    @ApiModelProperty(value = "家属用户ID", required = true)
    private Long familyUserId;

    @ApiModelProperty(value = "老人姓名", required = true)
    private String realName;

    @ApiModelProperty(value = "老人手机号", required = true)
    private String phone;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "身份证号", required = true)
    private String idCard;

    @ApiModelProperty(value = "性别: 1-男, 2-女")
    private Integer gender;

    @ApiModelProperty(value = "出生日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;

    @ApiModelProperty(value = "居住地址")
    private String address;

    @ApiModelProperty(value = "关系类型: 子女/配偶/亲戚等", required = true)
    private String relationType;

    @ApiModelProperty(value = "是否主要联系人: 0-否, 1-是")
    private Integer isPrimary = 0;

    // 健康信息
    @ApiModelProperty(value = "身高(cm)")
    private Double height;

    @ApiModelProperty(value = "体重(kg)")
    private Double weight;

    @ApiModelProperty(value = "血型")
    private String bloodType;

    @ApiModelProperty(value = "病史记录")
    private String medicalHistory;

    @ApiModelProperty(value = "过敏史")
    private String allergyHistory;

    @ApiModelProperty(value = "用药情况")
    private String medicationCondition;

    @ApiModelProperty(value = "紧急联系人姓名")
    private String emergencyContactName;

    @ApiModelProperty(value = "紧急联系人电话")
    private String emergencyContactPhone;

    @ApiModelProperty(value = "紧急联系人关系")
    private String emergencyContactRelation;
}
